home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / U-Z / VideoToolBox Folder / VideoToolboxSources / mc68881.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-23  |  675 b   |  29 lines  |  [TEXT/KAHL]

  1. /*
  2. mc68881.h 
  3. by Denis Pelli, 1992
  4. Defines MPW C's mc68881 and mc68020 preprocessor symbols for THINK C, so that
  5. your programs can use them in "if" statements without worrying about which compiler
  6. you're using. The symbols are 1 (i.e. true) if the compiled code requires the chip 
  7. (or better) and 0 otherwise.
  8.  
  9. CAUTION: Do not #include this file before FixMath.h
  10. */
  11. #pragma once
  12.  
  13. #if THINK_C==1                        /* THINK C 4 */
  14.     #define mc68881 _MC68881_
  15.     #define mc68020 _MC68020_
  16. #endif
  17. #if THINK_C>1                        /* THINK C 5 */
  18.     #if __option(mc68881)
  19.         #define mc68881 1
  20.     #else
  21.         #define mc68881 0
  22.     #endif
  23.     #if __option(mc68020)
  24.         #define mc68020 1
  25.     #else
  26.         #define mc68020 0
  27.     #endif
  28. #endif
  29.